home *** CD-ROM | disk | FTP | other *** search
-
- > Hi!
- >
- > Is there a smooth way to sort 20 variables???
- >
- This is the second sorting thing written so heres my bubble sort
- routine.
- Im doing this now from memory so it may/may not work
-
- Dim v(20) <-our variables
- ...
- .....
-
- Repeat
- c=0
- For q=1 to 19
- IF v(q)>v(q+1)
- temp=v(q)
- v(q)=v(q+1)
- v(q+1)=temp <-swap em round
- c=1
- END IF
- Next q
- Until c=0
-
- That should work!! hopefuly
- ____________________________________
- Lee Atkins.
- L.A.ATKINS@UCLAN.AC.UK
-
- IRC nick : EMBWBAM
- ________________________________________
- Metal detector mornings!
- ________________________________________
-
-